#ifndef __LG_ASSERT_T__
#define __LG_ASSERT_T__

#undef DEBUG_ON
//#define DEBUG_ON

#ifdef WIN32
#define Uart0_Printf printf
#else
extern void Uart0_Printf(const char *pcFmt, ...);
#endif

#ifdef DEBUG_ON
#define LG_ASSERT(expr) \
    do { \
        if(!(expr)) {Uart0_Printf("%s line[%d] assert\r\n", __FILE__, __LINE__);} \
    }while(0)
#else
#define LG_ASSERT(expr) \
    do { \
    }while(0)
#endif

#endif
